from PyQt5.QtWidgets import QDialog
from UI import Ui_about

import settings as st


class AboutDialog(QDialog, Ui_about):

    def __init__(self, parent):
        super().__init__(parent)
        self.setupUi(self)
        self.bindSignal()
        self.version_lb.setText(f'{st.SOFTWARE_NAME}\nversion: {st.VERSION}')

    def bindSignal(self):
        self.ok_btn.clicked.connect(self.okClickedEvent)

    def okClickedEvent(self):
        self.close()

